package com.haiyan.demo02;

public class Phone {
    private String brand;
    private double price;
    private String color;
    public Phone()
    {

    }
    public Phone(String brand,double price,String color)
    {
        this.brand=brand;
        this.price=price;
        this.color=color;
    }
    public String getBrand()
    {
        return this.brand;
    }
    public double getPrice()
    {
        return this.price;
    }
    public String getColor()
    {
        return this.color;
    }
    public void setBrand(String brand)
    {
        this.brand=brand;
    }
    public void setPrice(double price)
    {
        this.price=price;
    }
    public void setColor(String color)
    {
        this.color=color;
    }
    public void call()
    {
        System.out.println("正在使用价格为:"+this.price+"元"+this.color+"的"+this.brand
        +"手机打电话");

    }
    public void sendMessage()
    {
        System.out.println("正在使用价格为:"+this.price+"元"+this.color+"的"+this.brand
                +"发短信");
    }
}
